package com.hy.convenient.api.server;

import com.hy.convenient.api.dao.UserDownMapper;
import com.hy.convenient.api.pojo.UserDownPojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @className GoodsDownServer
 * @Author hdy
 * @Date 2020-12-23 16:25
 * @Version 1.0
 */
@Service
public class UserDownServer  implements  ApiServerInterface<UserDownPojo> {
    @Autowired
    public UserDownMapper userDownMapper;

    public List<UserDownPojo> queryDownList(Map<String, Object> map){
        return userDownMapper.queryDownList(map);
    }
    /**
     * 查询全部数据总条数
     * @param t
     * @return
     */
    public int queryCount(Map<String, Object> t){
        return userDownMapper.queryCount(t);
    }

    @Override
    public List<UserDownPojo> queryUpdateDownList(Map<String, Object> map) {
        return userDownMapper.queryUpdateDownList(map);
    }
    public UserDownPojo selecteMerId(UserDownPojo pojo){
        return userDownMapper.selecteMerId(pojo);
    }
}
